<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p @click="click">我是根标签结构</p>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                methods : {
                    click(){
                        this.$el.innerHTML = '<div>我是替换之后的div标签</div>';
                    }
                }
            });

            //vm.$el.innerHTML = '<div>我是替换之后的div标签</div>';
        </script>
    </body>
</html>